
#include "SeqList.h"
#include <stdio.h>
 

static void TestSeqList1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushBack(&s, 7);
	SLPushBack(&s, 8);
	SLPushBack(&s, 9);
	SLPrint(&s);

	/*SLPopBack(&s);
	SLPopBack(&s);*/
	//SLPrint(&s);

	SLPopBack(&s);
	SLPopBack(&s);
	SLPopBack(&s);
	SLPrint(&s);
	//SLPopBack(&s);
	//SLPopBack(&s);
	//SLPopBack(&s);
	//SLPopBack(&s);
	////SLPopBack(&s);
	//SLPrint(&s);

	//SLPushBack(&s, 10);
	//SLPushBack(&s, 20);
	//SLPrint(&s);

	SLDestroy(&s);
}

static void TestSeqList2()
{
	SL s;
	SLInit(&s);
	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);
	SLPushFront(&s, 7);
	SLPushFront(&s, 8);
	SLPushFront(&s, 9);
	SLPrint(&s);
	

	
	SLInsert(&s, 3, 56);
	SLPrint(&s);
	SLInsert(&s, 5, 72);
	SLPrint(&s);


	SLErase(&s, 5);
	SLPrint(&s);
	SLErase(&s, 3);
	SLPrint(&s);



}

int main()
{
	//TestSeqList1();
	TestSeqList2();
	return 0;
}